Electronic device and image capture method thereof

ABSTRACT

An electronic device is provided. The electronic device includes a housing, a display exposed through a first surface of the housing, a first camera exposed through a second surface of the housing that is opposite to the first surface, a second camera exposed through the second surface, a memory storing an image obtained by the first or second camera, and a processor electrically connected with the display, the first camera, the second camera, and the memory. The processor is configured to output a first image obtained by using the first camera on the display and, when an area recognized as a face in the first image has a size satisfying a specified condition, output a second image obtained by using the second camera on the display.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application claims the benefit under 35 U.S.C. § 119(a) of a Koreanpatent application filed on Jan. 9, 2017 in the Korean IntellectualProperty Office and assigned Serial number 10-2017-0002816, the entiredisclosure of which is hereby incorporated by reference.

TECHNICAL FIELD

The present disclosure relates to a technology for taking an image byusing a plurality of cameras.

BACKGROUND

Various forms of electronic products have been developed and used withthe development of electronics. Especially, in recent years, electronicdevices, such as smartphones, tablet personal computers (PCs), wearabledevices, and the like, which have a variety of functions, have beenwidely used. These electronic devices may include one or more camerasfor taking an image. For example, the electronic devices may include afront camera module and a rear camera module, and the rear camera modulemay include two or more cameras.

The above information is presented as background information only toassist with an understanding of the present disclosure. No determinationhas been made, and no assertion is made, as to whether any of the abovemight be applicable as prior art with regard to the present disclosure.

SUMMARY

When taking a picture or a moving image with an electronic device of therelated art, a user may have difficulty in accurately capturing asubject of interest (e.g., a person's face, a moving subject, or thelike) among subjects included within the field of view of a camera.Meanwhile, when the electronic device automatically determines a subjectin which the user is likely to be interested and zooms in on thecorresponding subject, an unintended subject may be photographed.

Aspects of the present disclosure are to address at least theabove-mentioned problems and/or disadvantages and to provide at leastthe advantages described below. Accordingly, an aspect of the presentdisclosure is to provide an electronic device and a method forautomatically taking a high-quality image of an object in which a useris likely to be interested, by using some of a plurality of cameras.

In accordance with an aspect of the present disclosure, an electronicdevice is provided. The electronic device includes a housing, a displayexposed through a first surface of the housing, a first camera exposedthrough a second surface of the housing that is opposite to the firstsurface, a second camera exposed through the second surface, a memorythat stores an image obtained by the first camera or the second camera,and a processor electrically connected with the display, the firstcamera, the second camera, and the memory. The processor is configuredto output a first image obtained by using the first camera on thedisplay and, when an area recognized as a face in the first image has asize satisfying a specified condition, output a second image obtained byusing the second camera on the display.

In accordance with another aspect of the present disclosure, anelectronic device is provided. The electronic device includes a housing,a display exposed through a first surface of the housing, a first cameraexposed through a second surface of the housing that is opposite to thefirst surface, a second camera exposed through the second surface, amemory that stores an image obtained by the first camera or the secondcamera, and a processor electrically connected with the display, thefirst camera, the second camera, and the memory. The processor isconfigured to output a first image obtained by using the first camera onthe display and, when an area recognized as a moving subject in thefirst image has a size satisfying a specified condition, output a secondimage obtained by using the second camera on the display if an arearecognized as a moving subject and included in the first image has asize satisfying a specified condition.

According to various embodiments of the present disclosure, anelectronic device may be provided that automatically zooms in on asubject included in an image obtained by a first camera by using asecond camera to obtain a normal image and a zoomed-in image of thesubject.

In addition, the present disclosure may provide various effects that aredirectly or indirectly recognized.

Other aspects, advantages, and salient features of the disclosure willbecome apparent to those skilled in the art from the following detaileddescription, which, taken in conjunction with the annexed drawings,discloses various embodiments of the present disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features, and advantages of certainembodiments of the present disclosure will be more apparent from thefollowing description taken in conjunction with the accompanyingdrawings, in which:

FIG. 1 illustrates an electronic device in a network environmentaccording to various embodiments of the present disclosure;

FIG. 2 is a block diagram of an electronic device according to variousembodiments of the present disclosure;

FIG. 3 is a block diagram of a program module according to variousembodiments of the present disclosure;

FIG. 4 illustrates a front view and a rear view of an electronic deviceaccording to an embodiment of the present disclosure;

FIG. 5 is a block diagram illustrating a configuration of an electronicdevice according to an embodiment of the present disclosure;

FIG. 6 illustrates an illustrative preview image output on a display ofan electronic device according to an embodiment of the presentdisclosure;

FIG. 7 illustrates an illustrative preview image output on a display ofan electronic device according to an embodiment of the presentdisclosure;

FIG. 8 illustrates an illustrative preview image output on a display ofan electronic device according to an embodiment of the presentdisclosure;

FIG. 9 illustrates an illustrative moving image output on a display ofan electronic device according to an embodiment of the presentdisclosure;

FIG. 10 illustrates an illustrative moving image output on a display ofan electronic device according to an embodiment of the presentdisclosure;

FIG. 11 illustrates an illustrative moving image output on a display ofan electronic device according to an embodiment of the presentdisclosure;

FIG. 12 illustrates an illustrative user interface output on a displayof an electronic device according to an embodiment of the presentdisclosure;

FIG. 13 is a flowchart illustrating an image capture method of anelectronic device according to an embodiment of the present disclosure;and

FIG. 14 is a flowchart illustrating an image capture method of anelectronic device according to an embodiment of the present disclosure.

Throughout the drawings, it should be noted that like reference numbersare used to depict the same or similar elements, features, andstructures.

DETAILED DESCRIPTION

The following description with reference to the accompanying drawings isprovided to assist in a comprehensive understanding of variousembodiments of the present disclosure as defined by the claims and theirequivalents. It includes various specific details to assist in thatunderstanding but these are to be regarded as merely exemplary.Accordingly, those of ordinary skill in the art will recognize thatvarious changes and modifications of the various embodiments describedherein can be made without departing from the scope and spirit of thepresent disclosure. In addition, descriptions of well-known functionsand constructions may be omitted for clarity and conciseness.

The terms and words used in the following description and claims are notlimited to the bibliographical meanings, but, are merely used by theinventor to enable a clear and consistent understanding of the presentdisclosure. Accordingly, it should be apparent to those skilled in theart that the following description of various embodiments of the presentdisclosure is provided for illustration purpose only and not for thepurpose of limiting the present disclosure as defined by the appendedclaims and their equivalents.

It is to be understood that the singular forms “a,” “an,” and “the”include plural referents unless the context clearly dictates otherwise.Thus, for example, reference to “a component surface” includes referenceto one or more of such surfaces.

In this disclosure, the expressions “A or B”, “at least one of A or/andB”, or “one or more of A or/and B”, and the like may include any and allcombinations of one or more of the associated listed items. The terms,such as “first”, “second”, and the like may be used to refer to variouselements regardless of the order and/or the priority and to distinguishthe relevant elements from other elements, but do not limit theelements. When an element (e.g., a first element) is referred to asbeing “(operatively or communicatively) coupled with/to” or “connectedto” another element (e.g., a second element), the element may bedirectly coupled with/to or connected to the other element or anintervening element (e.g., a third element) may be present.

According to the situation, the expression “configured to” used in thisdisclosure may be used as, for example, the expression “suitable for”,“having the capacity to”, “adapted to”, “made to”, or “capable of”, or“designed to” in hardware or software. The expression “a deviceconfigured to” may mean that the device is “capable of” operatingtogether with another device or other components. For example, a“processor configured to (or set to) perform A, B, and C” may mean adedicated processor (e.g., an embedded processor) for performing acorresponding operation or a generic-purpose processor (e.g., a centralprocessing unit (CPU) or an application processor (AP)) which performscorresponding operations by executing one or more software programswhich are stored in a memory device.

An electronic device according to various embodiments of this disclosuremay include at least one of, for example, smartphones, tablet personalcomputers (PCs), mobile phones, video telephones, electronic bookreaders, desktop PCs, laptop PCs, netbook computers, workstations,servers, personal digital assistants (PDAs), portable multimedia players(PMPs), Motion Picture Experts Group phase 1 or phase 2 (MPEG-1 orMPEG-2) audio layer 3 (MP3) players, medical devices, cameras, orwearable devices. According to various embodiments, the wearable devicemay include at least one of an accessory type (e.g., watches, rings,bracelets, anklets, necklaces, glasses, contact lens, orhead-mounted-devices (HMDs), a fabric or garment-integrated type (e.g.,an electronic apparel), a body-attached type (e.g., a skin pad ortattoos), or a bio-implantable type (e.g., an implantable circuit).According to various embodiments, the electronic device may include atleast one of, for example, televisions (TVs), digital versatile disc(DVD) players, audios, refrigerators, air conditioners, cleaners, ovens,microwave ovens, washing machines, air cleaners, set-top boxes, homeautomation control panels, security control panels, media boxes (e.g.,Samsung HomeSync™, Apple TV™, or Google TV™), game consoles (e.g., Xbox™or PlayStation™), electronic dictionaries, electronic keys, camcorders,electronic picture frames, and the like.

According to another embodiment, an electronic device may include atleast one of various medical devices (e.g., various portable medicalmeasurement devices (e.g., a blood glucose monitoring device, aheartbeat measuring device, a blood pressure measuring device, a bodytemperature measuring device, and the like), a magnetic resonanceangiography (MRA), a magnetic resonance imaging (MRI), a computedtomography (CT), scanners, and ultrasonic devices), navigation devices,a global navigation satellite system (GNSS), event data recorders(EDRs), flight data recorders (FDRs), vehicle infotainment devices,electronic equipment for vessels (e.g., navigation systems andgyrocompasses), avionics, security devices, head units for vehicles,industrial or home robots, drones, automatic teller's machines (ATMs),points of sales (POSs) of stores, or internet of things (e.g., lightbulbs, various sensors, sprinkler devices, fire alarms, thermostats,street lamps, toasters, exercise equipment, hot water tanks, heaters,boilers, and the like). According to an embodiment, the electronicdevice may include at least one of parts of furniture orbuildings/structures, electronic boards, electronic signature receivingdevices, projectors, or various measuring instruments (e.g., watermeters, electricity meters, gas meters, or wave meters, and the like).According to various embodiments, the electronic device may be aflexible electronic device or a combination of two or moreabove-described devices. Furthermore, an electronic device according toan embodiment of this disclosure may not be limited to theabove-described electronic devices. In this disclosure, the term “user”may refer to a person who uses an electronic device or may refer to adevice (e.g., an artificial intelligence electronic device) that usesthe electronic device.

FIG. 1 illustrates an electronic device in a network environmentaccording to various embodiments of the present disclosure.

Referring to FIG. 1, according to various embodiments, an electronicdevice 101 in a network environment is described. The electronic device101 may include a bus 110, a processor 120, a memory 130, aninput/output interface 150, a display 160, and a communication interface170. According to an embodiment, the electronic device 101 may notinclude at least one of the above-described elements or may furtherinclude other element(s). The bus 110 may interconnect theabove-described elements 110 to 170 and may include a circuit forconveying communications (e.g., a control message and/or data) among theabove-described elements. The processor 120 may include one or more of aCPU, an AP, or a communication processor (CP). For example, theprocessor 120 may perform an arithmetic operation or data processingassociated with control and/or communication of at least other elementsof the electronic device 101.

The memory 130 may include a volatile and/or nonvolatile memory. Forexample, the memory 130 may store instructions or data associated withat least one other element(s) of the electronic device 101. According toan embodiment, the memory 130 may store software and/or a program 140.The program 140 may include, for example, a kernel 141, a middleware143, an application programming interface (API) 145, and/or anapplication program (or “an application”) 147. At least a part of thekernel 141, the middleware 143, or the API 145 may be referred to as an“operating system (OS)”. For example, the kernel 141 may control ormanage system resources (e.g., the bus 110, the processor 120, thememory 130, and the like) that are used to execute operations orfunctions of other programs (e.g., the middleware 143, the API 145, andthe application program 147). Furthermore, the kernel 141 may provide aninterface that allows the middleware 143, the API 145, or theapplication program 147 to access discrete elements of the electronicdevice 101 to control or manage system resources.

The middleware 143 may perform, for example, a mediation role such thatthe API 145 or the application program 147 communicates with the kernel141 to exchange data. Furthermore, the middleware 143 may process one ormore task requests received from the application program 147 accordingto a priority. For example, the middleware 143 may assign the priority,which makes it possible to use a system resource (e.g., the bus 110, theprocessor 120, the memory 130, or the like) of the electronic device101, to at least one of the application program 147 and may process theone or more task requests. The API 145 may be an interface through whichthe application program 147 controls a function provided by the kernel141 or the middleware 143, and may include, for example, at least oneinterface or function (e.g., an instruction) for a file control, awindow control, image processing (IP), a character control, or the like.The input/output interface 150 may transmit an instruction or data inputfrom a user or another external device, to other element(s) of theelectronic device 101 or may output an instruction or data, receivedfrom other element(s) of the electronic device 101, to a user or anotherexternal device.

The display 160 may include, for example, a liquid crystal display(LCD), a light-emitting diode (LED) display, an organic LED (OLED)display, a microelectromechanical systems (MEMS) display, or anelectronic paper display. The display 160 may display, for example,various contents (e.g., a text, an image, a video, an icon, a symbol,and the like) to a user. The display 160 may include a touch screen andmay receive, for example, a touch, gesture, proximity, or hovering inputusing an electronic pen or a part of a user's body. For example, thecommunication interface 170 may establish communication between theelectronic device 101 and an external device (e.g., the first electronicdevice 102, the second electronic device 104, or the server 106). Forexample, the communication interface 170 may be connected to the network162 over wireless communication or wired communication to communicatewith the external device (e.g., the second electronic device 104 or theserver 106).

For example, the wireless communication may include cellularcommunication using at least one of long-term evolution (LTE), LTEadvanced (LTE-A), code division multiple access (CDMA), wideband CDMA(WCDMA), universal mobile telecommunications system (UMTS), wirelessbroadband (WiBro), global system for mobile communications (GSM), or thelike. According to an embodiment, the wireless communication mayinclude, for example, at least one of wireless fidelity (Wi-Fi),Bluetooth (BT), Bluetooth low energy (BLE), Zigbee, near fieldcommunication (NFC), magnetic stripe transmission (MST), radio frequency(RF), a body area network, or the like. According to an embodiment, thewireless communication may include GNSS. The GNSS may be one of, forexample, a global positioning system (GPS), a global navigationsatellite system (Glonass), a Beidou navigation satellite system(Beidou), or a European global satellite-based navigation system(hereinafter referred to as “Galileo”). Hereinafter, in this disclosure,“GPS” and “GNSS” may be interchangeably used. The wired communicationmay include at least one of, for example, a universal serial bus (USB),a high definition multimedia interface (HDMI), a recommendedstandard-232 (RS-232), power line communication, a plain old telephoneservice (POTS), or the like. The network 162 may include at least one oftelecommunications networks, for example, a computer network (e.g.,local area network (LAN) or wide area network (WAN)), an Internet, or atelephone network.

Each of the first and second electronic devices 102 and 104 may be adevice of which the type is different from or the same as that of theelectronic device 101. According to various embodiments, all or aportion of operations that the electronic device 101 will perform may beexecuted by another or plural electronic devices (e.g., the firstelectronic device 102, the second electronic device 104 or the server106). When the electronic device 101 executes any function or serviceautomatically or in response to a request, the electronic device 101 maynot perform the function or the service internally, but, alternativelyor additionally, it may request at least a portion of a functionassociated with the electronic device 101 at other electronic device(e.g., the electronic device 102 or 104 or the server 106). The otherelectronic device (e.g., the electronic device 102 or 104 or the server106) may execute the requested function or additional function and maytransmit the execution result to the electronic device 101. Theelectronic device 101 may provide the requested function or serviceusing the received result or may additionally process the receivedresult to provide the requested function or service. To this end, forexample, cloud computing, distributed computing, or client-servercomputing may be used.

FIG. 2 illustrates a block diagram of an electronic device according tovarious embodiments of the present disclosure.

Referring to FIG. 2, an electronic device 201 may include, for example,all or a part of the electronic device 101 illustrated in FIG. 1. Theelectronic device 201 may include one or more processors (e.g., an AP)210, a communication module 220, a subscriber identification module(SIM) 224, a memory 230, a sensor module 240, an input device 250, adisplay 260, an interface 270, an audio module 280, a camera module 291,a power management module 295, a battery 296, an indicator 297, and amotor 298. For example, the processor 210 may be implemented with asystem on chip (SoC). According to an embodiment, the processor 210 mayfurther include a graphics processing unit (GPU) and/or an image signalprocessor (ISP). The processor 210 may include at least a part (e.g., acellular module 221) of elements illustrated in FIG. 2. The processor210 may load an instruction or data, which is received from at least oneof other elements (e.g., a nonvolatile memory), into a volatile memoryand process the loaded instruction or data. The processor 210 may storeresult data in the nonvolatile memory.

The communication module 220 may be configured the same as or similar tothe communication interface 170 of FIG. 1. The communication module 220may include the cellular module 221, a Wi-Fi module 223, a BT module225, a GNSS module 227, an NFC module 228, and a RF module 229. Thecellular module 221 may provide, for example, voice communication, videocommunication, a character service, an Internet service, or the likeover a communication network. According to an embodiment, the cellularmodule 221 may perform discrimination and authentication of theelectronic device 201 within a communication network by using the SIM(e.g., a SIM card) 224. According to an embodiment, the cellular module221 may perform at least a portion of functions that the processor 210provides. According to an embodiment, the cellular module 221 mayinclude a CP. According to an embodiment, at least a part (e.g., two ormore) of the cellular module 221, the Wi-Fi module 223, the BT module225, the GNSS module 227, or the NFC module 228 may be included withinone integrated circuit (IC) or an IC package. For example, the RF module229 may transmit and receive a communication signal (e.g., an RFsignal). For example, the RF module 229 may include a transceiver, apower amplifier module (PAM), a frequency filter, a low noise amplifier(LNA), an antenna, or the like. According to another embodiment, atleast one of the cellular module 221, the Wi-Fi module 223, the BTmodule 225, the GNSS module 227, or the NFC module 228 may transmit andreceive an RF signal through a separate RF module. The SIM 224 mayinclude, for example, a card and/or embedded SIM that includes a SIM andmay include unique identify information (e.g., integrated circuit cardidentifier (ICCID)) or subscriber information (e.g., internationalmobile subscriber identity (IMSI)).

The memory 230 (e.g., the memory 130) may include an internal memory 232or an external memory 234. For example, the internal memory 232 mayinclude at least one of a volatile memory (e.g., a random access memory(RAM), a dynamic RAM (DRAM), a static RAM (SRAM), a synchronous DRAM(SDRAM), or the like), a nonvolatile memory (e.g., a read only memory(ROM), a one-time programmable ROM (OTPROM), a programmable ROM (PROM),an erasable and programmable ROM (EPROM), an electrically erasable andprogrammable ROM (EEPROM), a mask ROM, a flash ROM, a flash memory, ahard drive, or a solid state drive (SSD). The external memory 234 mayinclude a flash drive such as compact flash (CF), secure digital (SD),micro-SD, mini-SD, extreme digital (xD), a multimedia card (MMC), amemory stick, or the like. The external memory 234 may be operativelyand/or physically connected to the electronic device 201 through variousinterfaces.

The sensor module 240 may measure, for example, a physical quantity ormay detect an operation state of the electronic device 201. The sensormodule 240 may convert the measured or detected information to anelectric signal. For example, the sensor module 240 may include at leastone of a gesture sensor 240A, a gyro sensor 240B, a barometric pressuresensor 240C, a magnetic sensor 240D, an acceleration sensor 240E, a gripsensor 240F, the proximity sensor 240G, a color sensor 240H (e.g., red,green, blue (RGB) sensor), a biometric sensor 240I, atemperature/humidity sensor 240J, an illuminance sensor 240K, or anultra violet (UV) sensor 240M. Although not illustrated, additionally orgenerally, the sensor module 240 may further include, for example, anE-nose sensor, an electromyography (EMG) sensor, an electroencephalogram(EEG) sensor, an electrocardiogram (ECG) sensor, an infrared (IR)sensor, an iris sensor, and/or a fingerprint sensor. The sensor module240 may further include a control circuit for controlling at least oneor more sensors included therein. According to an embodiment, theelectronic device 201 may further include a processor that is a part ofthe processor 210 or independent of the processor 210 and is configuredto control the sensor module 240. The processor may control the sensormodule 240 while the processor 210 remains at a sleep state.

The input device 250 may include, for example, a touch panel 252, a(digital) pen sensor 254, a key 256, or an ultrasonic input unit 258.For example, the touch panel 252 may use at least one of capacitive,resistive, infrared and ultrasonic detecting methods. Also, the touchpanel 252 may further include a control circuit. The touch panel 252 mayfurther include a tactile layer to provide a tactile reaction to a user.The (digital) pen sensor 254 may be, for example, a part of a touchpanel or may include an additional sheet for recognition. The key 256may include, for example, a physical button, an optical key, or akeypad. The ultrasonic input device 258 may detect (or sense) anultrasonic signal, which is generated from an input device, through amicrophone (e.g., a microphone 288) and may check data corresponding tothe detected ultrasonic signal.

The display 260 (e.g., the display 160) may include a panel 262, ahologram device 264, a projector 266, and/or a control circuit forcontrolling the panel 262, the hologram device 264, or the projector266. The panel 262 may be implemented, for example, to be flexible,transparent or wearable. The panel 262 and the touch panel 252 may beintegrated into a single module. According to an embodiment, the panel262 may include a pressure sensor (or force sensor) that measures theintensity of touch pressure by a user. The pressure sensor may beimplemented integrally with the touch panel 252, or may be implementedas at least one sensor separately from the touch panel 252. The hologramdevice 264 may display a stereoscopic image in a space using a lightinterference phenomenon. The projector 266 may project light onto ascreen to display an image. For example, the screen may be arranged inthe inside or the outside of the electronic device 201. The interface270 may include, for example, a HDMI 272, a USB 274, an opticalinterface 276, or a D-subminiature (D-sub) 278. The interface 270 may beincluded, for example, in the communication interface 170 illustrated inFIG. 1. Additionally or alternatively, the interface 270 may include,for example, a mobile high definition link (MHL) interface, a SDcard/MMC interface, or an infrared data association (IrDA) standardinterface.

The audio module 280 may convert a sound and an electric signal in dualdirections. At least a part of the audio module 280 may be included, forexample, in the input/output interface 150 illustrated in FIG. 1. Theaudio module 280 may process, for example, sound information that isinput or output through a speaker 282, a receiver 284, an earphone 286,or the microphone 288. For example, the camera module 291 may shoot astill image or a video. According to an embodiment, the camera module291 may include at least one or more image sensors (e.g., a front sensoror a rear sensor), a lens, an ISP, or a flash (e.g., an LED or a xenonlamp). The power management module 295 may manage, for example, power ofthe electronic device 201. According to an embodiment, a powermanagement integrated circuit (PMIC), a charger IC, or a battery or fuelgauge may be included in the power management module 295. The PMIC mayhave a wired charging method and/or a wireless charging method. Thewireless charging method may include, for example, a magnetic resonancemethod, a magnetic induction method or an electromagnetic method and mayfurther include an additional circuit, for example, a coil loop, aresonant circuit, a rectifier, or the like. The battery gauge maymeasure, for example, a remaining capacity of the battery 296 and avoltage, current or temperature thereof while the battery is charged.The battery 296 may include, for example, a rechargeable battery and/ora solar battery.

The indicator 297 may display a specific state of the electronic device201 or a part thereof (e.g., the processor 210), such as a bootingstate, a message state, a charging state, and the like. The motor 298may convert an electrical signal into a mechanical vibration and maygenerate the following effects: vibration, haptic, and the like. Theelectronic device 201 may include a processing device (e.g., a GPU) forsupporting a mobile TV. The processing device for supporting the mobileTV may process media data according to the standards of digitalmultimedia broadcasting (DMB), digital video broadcasting (DVB),MediaFLO™, or the like. Each of the above-mentioned elements of theelectronic device according to various embodiments of the presentdisclosure may be configured with one or more components, and the namesof the elements may be changed according to the type of the electronicdevice. In various embodiments, some elements of the electronic device(e.g., the electronic device 201) may be omitted or other additionalelements may be added. Furthermore, some of the elements of theelectronic device may be combined with each other to form one entity, sothat the functions of the elements may be performed in the same manneras before the combination.

FIG. 3 illustrates a block diagram of a program module according tovarious embodiments of the present disclosure.

Referring to FIG. 3, a program module 310 (e.g., the program 140) mayinclude an OS to control resources associated with an electronic device(e.g., the electronic device 101), and/or diverse applications (e.g.,the application program 147) driven on the OS. The OS may be, forexample, Android™, iOS™, Windows™, Symbian™, Tizen™, or Bada™. Theprogram module 310 may include a kernel 320 (e.g., the kernel 141), amiddleware 330 (e.g., the middleware 143), an API 360 (e.g., the API145), and/or an application 370 (e.g., the application program 147). Atleast a portion of the program module 310 may be preloaded on anelectronic device or may be downloadable from an external electronicdevice (e.g., the first electronic device 102, the second electronicdevice 104, the server 106, or the like).

The kernel 320 (e.g., the kernel 141) may include, for example, a systemresource manager 321 or a device driver 323. The system resource manager321 may control, allocate, or retrieve system resources. According to anembodiment, the system resource manager 321 may include a processmanaging unit, a memory managing unit, a file system managing unit, orthe like. The device driver 323 may include, for example, a displaydriver, a camera driver, a BT driver, a shared memory driver, a USBdriver, a keypad driver, a Wi-Fi driver, an audio driver, or aninter-process communication (IPC) driver. The middleware 330 mayprovide, for example, a function that the application 370 needs incommon, or may provide diverse functions to the application 370 throughthe API 360 to allow the application 370 to efficiently use limitedsystem resources of the electronic device. According to an embodiment,the middleware 330 may include at least one of a runtime library 335, anapplication manager 341, a window manager 342, a multimedia manager 343,a resource manager 344, a power manager 345, a database manager 346, apackage manager 347, a connectivity manager 348, a notification manager349, a location manager 350, a graphic manager 351, or a securitymanager 352.

The runtime library 335 may include, for example, a library module thatis used by a compiler to add a new function through a programminglanguage while the application 370 is being executed. The runtimelibrary 335 may perform input/output management, memory management, orcapacities about arithmetic functions. The application manager 341 maymanage, for example, a life cycle of at least one application of theapplication 370. The window manager 342 may manage a graphical userinterface (GUI) resource that is used in a screen. The multimediamanager 343 may identify a format necessary for playing diverse mediafiles, and may perform encoding or decoding of media files by using acodec suitable for the format. The resource manager 344 may manageresources such as a memory space or source code of the application 370.The power manager 345 may manage a battery or power, and may providepower information for an operation of an electronic device. According toan embodiment, the power manager 345 may operate with a basicinput/output system (BIOS). The database manager 346 may generate,search for, or modify database that is to be used in the application370. The package manager 347 may install or update an application thatis distributed in the form of package file.

The connectivity manager 348 may manage, for example, a wirelessconnection. The notification manager 349 may provide an event, forexample, an arrival message, an appointment, or a proximity notificationto a user. For example, the location manager 350 may manage locationinformation about an electronic device. The graphic manager 351 maymanage a graphic effect that is provided to a user, or manage a userinterface relevant thereto. The security manager 352 may provide, forexample, system security or user authentication. According to anembodiment, the middleware 330 may include a telephony manager formanaging a voice or video call function of the electronic device or amiddleware module that combines diverse functions of the above-describedelements. According to an embodiment, the middleware 330 may provide amodule specialized to each OS to provide differentiated functions.Additionally, the middleware 330 may dynamically remove a part of thepreexisting elements or may add new elements thereto. The API 360 maybe, for example, a set of programming functions and may be provided witha configuration that is variable depending on an OS. For example, whenan OS is the android or the iOS, it may provide one API set perplatform. When the OS is the Tizen, the API 360 may provide two or moreAPI sets.

The application 370 may include, for example, applications such as ahome 371, a dialer 372, a short message service (SMS)/multimediamessaging service (MMS) 373, an instant message (IM) 374, a browser 375,a camera 376, an alarm 377, a contact 378, a voice dial 379, an e-mail380, a calendar 381, a media player 382, an album 383, a watch 384, ahealth care application (e.g., measuring an exercise quantity, bloodsugar, or the like) or offering of environmental information (e.g.,information of barometric pressure, humidity, temperature, or the like).According to an embodiment, the application 370 may include aninformation exchanging application to support information exchangebetween an electronic device and an external electronic device. Theinformation exchanging application may include, for example, anotification relay application for transmitting specific information toan external electronic device, or a device management application formanaging the external electronic device. For example, the notificationrelay application may include a function of transmitting notificationinformation, which arise from other applications, to an externalelectronic device or may receive, for example, notification informationfrom an external electronic device and provide the notificationinformation to a user. The device management application may install,delete, or update for example, a function (e.g., turn-on/turn-off of anexternal electronic device itself (or a part of components) oradjustment of brightness (or resolution) of a display) of the externalelectronic device which communicates with the electronic device, and anapplication running in the external electronic device. According to anembodiment, the application 370 may include an application (e.g., ahealth care application of a mobile medical device) that is assigned inaccordance with an attribute of an external electronic device. Accordingto an embodiment, the application 370 may include an application that isreceived from an external electronic device. At least a portion of theprogram module 310 may be implemented by software, firmware, hardware(e.g., the processor 210), or a combination (e.g., execution) of two ormore thereof, and may include modules, programs, routines, sets ofinstructions, processes, or the like for performing one or morefunctions.

FIG. 4 illustrates a front view and a rear view of an electronic deviceaccording to an embodiment of the present disclosure.

Referring to FIG. 4, an electronic device 400 according to an embodimentmay include a housing 410, a display 420, and a camera module 430. InFIG. 4, the electronic device 400 is exemplified by a smartphone.Without being limited thereto, however, the electronic device 400 may beone of a variety of devices, such as a tablet PC, a wearable device, andthe like.

The housing 410 may form the exterior of the electronic device 400. Thehousing 410 may protect elements inside the electronic device 400. Forexample, the housing 410 may include a first surface constituting thefront side of the electronic device 400, a second surface opposite tothe first surface and constituting the rear side of the electronicdevice 400, and side surfaces surrounding space between the firstsurface and the second surface.

The display 420 may be exposed through the first surface of the housing410. For example, the display 420 may be exposed through a cover glass.According to an embodiment, the display 420 may output an image obtainedby the camera module 430.

The camera module 430 may be disposed on the rear side of the electronicdevice 400. The camera module 430 may include a first camera 431 and asecond camera 432. The first camera 431 and the second camera 432 may beexposed through the second surface of the housing 410. The first camera431 and the second camera 432 may be arranged to face the samedirection. According to an embodiment, the second camera 432 may bemoved by an actuator, a motor, or the like. In this case, the secondcamera 432 may face a direction different from that of the first camera431. The first camera 431 and the second camera 432 may include the sameor different type of lenses.

FIG. 5 is a block diagram illustrating a configuration of an electronicdevice according to an embodiment of the present disclosure.

Referring to FIG. 5, the electronic device 400 according to anembodiment may include the display 420, the camera module 430, a memory440, and a processor 450. According to implemented embodiments of theelectronic device 400, some of the elements illustrated in FIG. 5 may beomitted, or elements not illustrated in FIG. 5 may be further included.The electronic device 400 may be one of a variety of devices, such as asmartphone, a tablet PC, a wearable device, and the like.

The display 420 may output an image. According to an embodiment, thedisplay 420 may output an image obtained by the camera module 430. Forexample, the display 420 may output an image obtained by the firstcamera 431 or an image obtained by the second camera 432. The display420 may output, on an area thereof, an image obtained by the firstcamera 431 and may output, on another area thereof, an image obtained bythe second camera 432.

The camera module 430 may include the first camera 431, the secondcamera 432, an image sensor interface 433, and an ISP 434. The firstcamera 431 and the second camera 432 may each include a lens, an opticalimage stabilization (OIS) actuator module, an aperture, an image sensor,a shutter, and the like.

The first camera 431 may obtain an image. The first camera 431 may take,for example, a picture or a moving image. The first camera 431 mayinclude, for example, a wide-angle lens.

The second camera 432 may obtain an image. The second camera 432 maytake, for example, a picture or a moving image. The second camera 432may be actuated independently of the first camera 431, and the firstcamera 431 and the second camera 432 may obtain different images.According to an embodiment, the second camera 432 may be configured tosupport optical zoom. The second camera 432 may include, for example, atelephoto lens. The second camera 432 may be rotated or moved by anactuator or a motor connected with the second camera 432.

The image sensor interface 433 may allow data transmission or receptionbetween the first and second cameras 431 and 432 and another element(e.g., the ISP 434). For example, the image sensor interface 433 maytransfer image data generated by the first camera 431 and the secondcamera 432 to the ISP 434.

The ISP 434 may include a plurality of IP blocks. The ISP 434 maycorrect a first image obtained from the first camera 431 and a secondimage obtained from the second camera 432, through the plurality of IPblocks. The plurality of IP blocks may include a variety of IP blocks,which may be, for example, an IP block for color interpolation, an IPblock for lens shading correction, an IP block for auto white balance,an IP block for lateral chromatic aberration correction, an IP block foroptical inverse correction, an IP block for noise reduction, an IP blockfor edge enhancement, an IP block for gamma correction, and/or an IPblock for out-of-focusing. The plurality of IP blocks may be referred toas IP filters or IP modules. According to an embodiment, the ISP 434 maybe included in the processor 450, and processing by the ISP 434 may beperformed after correction or composition by the processor 450.

The memory 440 may store data. The memory 440 may be a volatile memoryand/or a non-volatile memory. For example, the memory 440 may store acamera application. In another example, the memory 440 may store animage obtained by the first camera 431 or the second camera 432.

The processor 450 may be electrically connected with the display 420,the camera module 430, and the memory 440. The processor 450 may controlthe display 420, the camera module 430, and the memory 440. Theprocessor 450 may execute the camera application stored in the memory440. The processor 450 may drive the camera module 430 through thecamera application and may output an image obtained by the camera module430 on the display 420.

According to an embodiment, the processor 450 may output the first imageobtained by using the first camera 431 on the display 420. For example,the processor 450 may execute the camera application. The processor 450may obtain the first image by using the first camera 431 after executingthe camera application. The first image may be, for example, a previewimage or a moving image taken by the first camera 431. The processor 450may output the acquired first image on the display 420.

According to an embodiment, the processor 450 may determine whether anobject included in the first image satisfies a specified condition.

For example, the processor 450 may determine whether an area recognizedas a face and included in the first image has a size satisfying thespecified condition. The processor 450 may analyze the first image todetect an area in which a person's face is included in the first image(face detection). The processor 450 may detect the area including theface by using various algorithms (e.g., Haar cascade classifier) forface detection. The processor 450 may recognize the size of the arearecognized as the face. The processor 450 may determine whether theabsolute or relative size of the area recognized as the face satisfiesthe specified condition. For example, when the first image has a size of1440×1080, the processor 450 may determine that the specified conditionis satisfied, if the area recognized as the face has a size of 180×180or more, or is about 2% or more of the entire size of the first image.In another example, when the first image has a size of 1920×1080, theprocessor 450 may determine that the specified condition is satisfied,if the area recognized as the face has a size of 180×180 or more, or isabout 1.5% or more of the entire size of the first image. In anotherexample, in the case where the first image has a size of 1088×1088, theprocessor 450 may determine that the specified condition is satisfied,if the area recognized as the face has a size of 181×181 or more, or isabout 2.7% or more of the entire size of the first image.

In another example, the processor 450 may determine whether an arearecognized as a moving subject and included in the first image has asize satisfying a specified condition. The processor 450 may analyze thefirst image to detect the moving subject in the first image. Theprocessor 450 may detect the area including the moving subject by usingvarious algorithms for detection of a moving subject. The processor 450may recognize the size of the area recognized as the moving subject. Theprocessor 450 may determine whether the absolute or relative size of thearea recognized as the moving subject satisfies the specified condition.For example, when the first image has a size of 1440×1080, the processor450 may determine that the specified condition is satisfied, if the arearecognized as the moving subject has a size of 200×200 or more, or isabout 2% or more of the entire size of the first image. In anotherexample, when the first image has a size of 1920×1080, the processor 450may determine that the specified condition is satisfied, if the arearecognized as the moving subject has a size of 200×200 or more, or isabout 1.5% or more of the entire size of the first image. In anotherexample, when the first image has a size of 1088×1088, the processor 450may determine that the specified condition is satisfied, if the arearecognized as the moving subject has a size of 250×250 or more, or isabout 2.7% or more of the entire size of the first image.

According to an embodiment, the processor 450 may output the secondimage obtained by using the second camera 432 on the display 420 if anobject included in the first image satisfies a specified condition. Forexample, if the specified condition is satisfied, the processor 450 mayobtain the second image by using the second camera 432. The processor450 may zoom in on the identified object by using the second camera 432to obtain the second image. The processor 450 may automatically trackthe area recognized as the face or the moving subject. The processor 450may zoom in on the area recognized as the face or the moving subject byusing an optical zoom function of the second camera 432. The processor450 may zoom in on the corresponding area to obtain the second image.The second image may be a preview image or a moving image taken by thesecond camera 432.

According to an embodiment, the processor 450 may crop the imageobtained by the second camera 432 to obtain the second image. Forexample, the processor 450 may obtain an image by using the secondcamera 432. In this case, the second camera 432 may have a narrowerfield of view than the first camera 431. The processor 450 may crop theacquired image such that the area recognized as the face or the movingsubject is located in the center. The processor 450 may obtain thecropped image as the second image.

According to an embodiment, the processor 450 may move the second camera432 by using an actuator or a motor connected with the second camera 432to allow the second camera 432 to be directed toward the face or themoving subject. The processor 450 may analyze the first image to computean angle by which the second camera 432 moves to be directed toward theface or the moving subject. The processor 450 may control the actuatoror the motor to allow the second camera 432 to move by the computedangle.

According to an embodiment, the processor 450 may output the acquiredsecond image on the display 420. For example, the processor 450 mayoutput the second image on the entire area of the display 420. Inanother example, the processor 450 may output the first image on an areaof the display 420 and the second image on another area of the display420. In another example, the processor 450 may output the first image onthe entire area of the display 420 and the second image on a partialarea within the area on which the first image is displayed (i.e., apicture in picture (PIP)). Illustrative screens including the firstimage and/or the second image will be described below in detail withreference to FIGS. 6 to 11.

According to an embodiment, the processor 450 may process the secondimage differently from the first image. For example, the processor 450may correct the first image and the second image using differenttechniques. The processor 450 may differently apply, to the first imageand the second image, correction techniques, for example, colorinterpolation, lens shading correction, white balance, lateral chromaticaberration correction, optical inverse correction, noise reduction, edgeenhancement, gamma correction, and/or out-of-focusing. The processor 450may store the processed first and/or second image in the memory 440.

FIG. 6 illustrates an illustrative preview image output on a display ofan electronic device according to an embodiment of the presentdisclosure.

It may be understood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 6 are controlled by theprocessor 450 of the electronic device 400.

Referring to FIG. 6, the electronic device according to an embodimentmay obtain a first image 610 by using a first camera (e.g., the firstcamera 431). The electronic device may display the first image 610 on adisplay (e.g., the display 420). The electronic device may analyze thefirst image 610 to detect a face in the first image 610. When aplurality of faces are included in the first image 610 and locatedwithin a specified distance, the electronic device may detect a firstarea 611 including the plurality of faces.

According to an embodiment, if the size of the faces satisfy a specifiedcondition (e.g., if the first image 610 has a size of 1440×1080, and thefaces have a size of 180×180 or more), the electronic device may obtaina second image 620 by using a second camera (e.g., the second camera432). For example, if at least one of the plurality of faces included inthe first area 611 satisfies the specified condition, the electronicdevice may obtain the second image 620 by using the second camera. Theelectronic device may zoom in on the first area 611 by using the secondcamera to obtain the second image 620. According to an embodiment, theelectronic device may zoom in on the faces included in the first area611 and bodies connected with the faces by using the second camera toobtain the second image 620. For example, the electronic device mayrecognize the faces and then may recognize the bodies connected with thefaces by using a depth map. The electronic device may display the secondimage 620 on the display. In the example of FIG. 6, the electronicdevice displays the second image 620 on the entire area of the display.Without being limited thereto, however, the electronic device maydisplay the first image 610 on an upper side of the display and thesecond image 620 on a lower side of the display, as illustrated in FIG.9.

According to an embodiment, the electronic device may display, on thedisplay, a user interface for saving the first image 610, saving thesecond image 620, or saving the first image 610 and the second image620. For example, the electronic device may save the first image 610 ifan input is applied to a first capture button 615, and may save thesecond image 620 if an input is applied to a second capture button 625.In another example, the electronic device may save both the first image610 and the second image 620 if an input is applied to the secondcapture button 625.

FIG. 7 illustrates an illustrative preview image output on a display ofan electronic device according to an embodiment of the presentdisclosure.

It may be understood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 7 are controlled by theprocessor 450 of the electronic device 400.

Referring to FIG. 7, the electronic device according to an embodimentmay obtain a first image 710 by using a first camera. The electronicdevice may display the first image 710 on a display. The electronicdevice may analyze the first image 710 to detect a first area 711including a plurality of faces in the first image 710.

According to an embodiment, if the size of the faces satisfy a specifiedcondition, the electronic device may obtain a second image 720 by usinga second camera. The electronic device may display the second image 720on the display.

According to an embodiment, the electronic device may output the firstimage 710 on a first area of the display and the second image 720 on asecond area of the display that is included in the first area of thedisplay. For example, the electronic device may display the first image710 on the entire area of the display and may display the second image720 on a partial area within the area on which the first image 710 isdisplayed by using a PIP function.

According to an embodiment, the electronic device may display, on thedisplay, a user interface for saving the first image 710, saving thesecond image 720, or saving the first image 710 and the second image720. For example, the electronic device may save the first image 710 ifan input is applied to a first capture button 715, and may save thesecond image 720 if an input is applied to a second capture button 725.In another example, the electronic device may save both the first image710 and the second image 720 if an input is applied to the first capturebutton 715 after the second image 720 is displayed on the display.

FIG. 8 illustrates an illustrative preview image output on a display ofan electronic device according to an embodiment of the presentdisclosure.

It may be understood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 8 are controlled by theprocessor 450 of the electronic device 400.

Referring to FIG. 8, the electronic device according to an embodimentmay obtain a first image 810 by using a first camera. The electronicdevice may analyze the first image 810 to recognize a first face 811 a,a second face 811 b, a third face 811 c, a fourth face 811 d, a fifthface 812 a, and a sixth face 812 b. The electronic device may classifythe plurality of faces into one or more groups based on the distancesbetween the plurality of faces. For example, the electronic device maygroup the first face 811 a, the second face 811 b, the third face 811 c,and the fourth face 811 d, which are located within a specifieddistance, as a first group and may group the fifth face 812 a and thesixth face 812 b, which are located within a specified distance, as asecond group. The electronic device may recognize a first area 811including the first group and a second area 812 including the secondgroup.

According to an embodiment, the electronic device may obtain a secondimage 820 of one of the one or more groups by using a second camera. Theelectronic device may obtain the second image 820 of a group includingthe greatest number of faces, among the one or more groups, by using thesecond camera. For example, the electronic device may obtain the secondimage 820 by zooming in on the first area 811 including the first groupthat includes a larger number of faces than the second group.

According to an embodiment, the electronic device may display, on adisplay, a guide through which to select one of the one or more groups.For example, the electronic device may display a guide line representingthe first area 811 or the second area 812 on the display. The electronicdevice may obtain an image of a group selected through the guide, byusing the second camera. For example, if a user of the electronic deviceselects the second area 812, the electronic device may obtain an imageof the second group. The electronic device may zoom in on the secondarea 812 including the second group to obtain an image of the secondgroup. The electronic device may display the image of the second groupon the area on which the second image 820 is displayed.

According to an embodiment, the electronic device may display, on thedisplay, a user interface for saving the first image 810, saving thesecond image 820, or saving the first image 810 and the second image820. For example, the electronic device may save the first image 810 ifan input is applied to a first capture button 815, and may save thesecond image 820 if an input is applied to a second capture button 825.In another example, the electronic device may save both the first image810 and the second image 820 if an input is applied to the secondcapture button 825.

FIG. 9 illustrates an illustrative moving image output on a display ofan electronic device according to an embodiment of the presentdisclosure.

It may be understood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 9 are controlled by theprocessor 450 of the electronic device 400.

Referring to FIG. 9, the electronic device according to an embodimentmay obtain a first image 910 by using a first camera. The electronicdevice may display the first image 910 on a display. The electronicdevice may analyze the first image 910 to detect a moving subject in thefirst image 910. The electronic device may detect a first area 911including the moving subject.

According to an embodiment, if the size of the moving subject satisfiesa specified condition (e.g., if the first image 910 has a size of1440×1080, and the moving subject has a size of 200×200 or more), theelectronic device may obtain a second image 920 by using a secondcamera. For example, the electronic device may zoom in on the first area911 by using the second camera to obtain the second image 920.

According to an embodiment, the electronic device may display the secondimage 920 on the display. For example, the electronic device may displaythe first image 910 on an upper side of the display and the second image920 on a lower side of the display.

FIG. 10 illustrates an illustrative moving image output on a display ofan electronic device according to an embodiment of the presentdisclosure.

It may be understood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 10 are controlled bythe processor 450 of the electronic device 400.

Referring to FIG. 10, the electronic device according to an embodimentmay obtain a first image 1010 by using a first camera. The electronicdevice may display the first image 1010 on a display. The electronicdevice may analyze the first image 1010 to detect a moving subject inthe first image 1010. The electronic device may detect a first area 1011including the moving subject.

According to an embodiment, if the size of the moving subject satisfiesa specified condition (e.g., if the first image 1010 has a size of1440×1080, and the moving subject has a size of 200×200 or more), theelectronic device may obtain a second image 1020 by using a secondcamera. For example, the electronic device may zoom in on the first area1011 by using the second camera to obtain the second image 1020. Theelectronic device may display the second image 1020 on the display. Forexample, the electronic device may display the first image 1010 on thedisplay and may display the second image 1020 on a partial area withinthe first image 1010 using a PIP function.

According to an embodiment, the electronic device may automaticallytrack the moving subject. The electronic device may obtain the secondimage 1020 of the area including the moving subject by consistentlytracking the moving subject. When the moving subject is outside thefield of view of the first camera, the electronic device may stopactuating the second camera. Even when the moving subject stops, theelectronic device may stop actuating the second camera. The electronicdevice may stop displaying the second image 1020 and may display onlythe first image 1010 on the display.

FIG. 11 illustrates an illustrative moving image output on a display ofan electronic device according to an embodiment of the presentdisclosure.

It may be understood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 11 are controlled bythe processor 450 of the electronic device 400.

Referring to FIG. 11, the electronic device may obtain a first image1110 by using a first camera. The electronic device may display thefirst image 1110 on a display. The electronic device may analyze thefirst image 1110 to detect moving subjects in the first image 1110. Theelectronic device may recognize a first area 1111 and a second area1112, each of which includes a moving subject.

According to an embodiment, if two or more moving subjects satisfy aspecified condition are recognized in the first image 1110, theelectronic device may display, on the display, a guide through which toselect one of the two or more subjects. For example, the electronicdevice may display, on the display, a guide line that represents thefirst area 1111 including a first subject and the second area 1112including a second subject. The electronic device may obtain an image ofa moving subject selected through the guide, by using a second camera.

For example, if the first area 1111 is selected, the electronic devicemay zoom in on the first area 1111 by using the second camera to obtaina second image 1120. The electronic device may display the second image1120 on a partial area within the area on which the first image 1110 isdisplayed. In another example, if the second area 1112 is selected, theelectronic device may zoom in on the second area 1112 by using thesecond camera to obtain a third image 1130. The electronic device maydisplay the third image 1130 on a partial area within the area on whichthe first image 1110 is displayed.

FIG. 12 illustrates an illustrative user interface output on a displayof an electronic device according to an embodiment of the presentdisclosure.

It may be understood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 12 are controlled bythe processor 450 of the electronic device 400.

Referring to FIG. 12, the electronic device may display, on a display, afirst user interface 1210 for settings of a camera module included inthe electronic device. The first user interface 1210 may include aplurality of menus for setting, for example, a picture size, a videosize, auto-focusing, intelligent zoom, and the like. If an input isapplied to an intelligent zoom menu 1211, the electronic device maydisplay, on the display, a second user interface 1220 for setting anintelligent zoom function.

For example, the second user interface 1220 may include a first menu1221 for selecting whether to automatically output the above-describedsecond image on the display. If the first menu 1221 is enabled, theelectronic device may automatically output the above-described secondimage on the display by recognizing a face or a moving subjectautomatically included in the first image when the first image is taken.

In another example, the second user interface 1220 may include a secondmenu 1222 for selecting whether to simultaneously save theabove-described first and second images. If the second menu 1222 isenabled, the electronic device may automatically save both the firstimage and the second image when an input is applied to a capture button.

FIG. 13 is a flowchart illustrating an image capture method of anelectronic device according to an embodiment of the present disclosure.

Hereinafter, it is assumed that the electronic device 400 of FIGS. 4 and5 performs the process illustrated in FIG. 13. Furthermore, it may beunderstood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 13 are controlled bythe processor 450 of the electronic device 400.

Referring to FIG. 13, in operation 1310, the electronic device mayobtain a first image by using a first camera. For example, if a cameraapplication is executed, the electronic device may drive the firstcamera including a wide-angle lens to obtain the first image.

In operation 1320, the electronic device may output the first image on adisplay. For example, the electronic device may output, on the display,a preview image of a picture to be taken by the first camera or a movingimage being taken by the first camera.

In operation 1330, the electronic device may recognize a face includedin the first image. For example, the electronic device may analyze thefirst image to recognize a person's face included in the first image.The electronic device may recognize an area within the outline of theface and may recognize a rectangular area including the face. Theelectronic device may also recognize an area including a plurality offaces.

In operation 1340, the electronic device may determine whether the sizeof the area recognized as the face satisfies a specified condition. Forexample, the electronic device may determine whether the size of thearea recognized as the face relative to the first image satisfies thespecified condition. The specified condition may be varied depending onthe size of the first image.

If the specified condition is satisfied, the electronic device may, inoperation 1350, obtain a second image by using a second camera. Forexample, if the specified condition is satisfied, the electronic devicemay actuate the second camera. The electronic device may zoom in on thearea recognized as the face by using an optical zoom function of thesecond camera. The electronic device may obtain a zoomed-in image as thesecond image. The electronic device may obtain the second image bycropping the zoomed-in image with respect to the area recognized as theface. Also, the electronic device may obtain the second image bydirecting the second camera toward the face by moving or rotating thesecond camera using an actuator.

In operation 1360, the electronic device may output the second image onthe display. For example, the electronic device may output, on thedisplay, a preview image of a picture to be taken by the second cameraor a moving image being taken by the second camera. The electronicdevice may output the first image on an area of the display and thesecond image on another area of the display. The electronic device maysimultaneously output the first image and the second image by using aPIP function.

FIG. 14 is a flowchart illustrating an image capture method of anelectronic device according to an embodiment of the present disclosure.

Hereinafter, it is assumed that the electronic device 400 of FIGS. 4 and5 performs the process illustrated in FIG. 14. Furthermore, it may beunderstood that operations mentioned as being performed by theelectronic device 400 in the description of FIG. 14 are controlled bythe processor 450 of the electronic device 400. Repetitive descriptionof the operations described with reference to FIG. 13 will be omittedfor the convenience of description.

Referring to FIG. 14, in operation 1410, the electronic device mayobtain a first image by using a first camera.

In operation 1420, the electronic device may output the first image on adisplay.

In operation 1430, the electronic device may track a moving subjectincluded in the first image. For example, the electronic device mayanalyze the first image to recognize the moving subject included in thefirst image. The electronic device may recognize an area within theoutline of the moving subject and may recognize a rectangular areaincluding the moving subject. Also, the electronic device may recognizea plurality of rectangular areas including a plurality of subjects. Theelectronic device may consistently track the moving subject to recognizethe area including the moving subject.

In operation 1440, the electronic device may determine whether the sizeof the area recognized as the moving subject satisfies a specifiedcondition. For example, the electronic device may determine whether thesize of the area recognized as the moving subject relative to the firstimage satisfies the specified condition. The specified condition may bevaried depending on the size of the first image.

If the specified condition is satisfied, the electronic device may, inoperation 1450, obtain a second image by using a second camera. Forexample, if the specified condition is satisfied, the electronic devicemay actuate the second camera. The electronic device may zoom in on thearea recognized as the moving subject by using an optical zoom functionof the second camera. The electronic device may obtain a zoomed-in imageas the second image. The electronic device may obtain the second imageby cropping the zoomed-in image with respect to the area recognized asthe moving subject. Also, the electronic device may obtain the secondimage by directing the second camera toward the moving subject by movingor rotating the second camera using an actuator or a motor.

In operation 1460, the electronic device may output the second image onthe display.

The term “module” used in this disclosure may include a unit composed ofhardware, software and firmware and may be interchangeably used with theterms “unit”, “logic”, “logical block”, “component” and “circuit”. The“module” may be an integrated component or may be a minimum unit forperforming one or more functions or a part thereof. The “module” may beimplemented mechanically or electronically and may include at least oneof an application-specific IC (ASIC) chip, a field-programmable gatearray (FPGA), and a programmable-logic device for performing someoperations, which are known or will be developed. At least a part of anapparatus (e.g., modules or functions thereof) or a method (e.g.,operations) according to various embodiments may be, for example,implemented by instructions stored in computer-readable storage media(e.g., the memory 130) in the form of a program module. The instruction,when executed by a processor (e.g., the processor 120), may cause theprocessor to perform a function corresponding to the instruction. Acomputer-readable recording medium may include a hard disk, a floppydisk, a magnetic media (e.g., a magnetic tape), an optical media (e.g.,a compact disc ROM (CD-ROM) and a DVD, a magneto-optical media (e.g., afloptical disk)), and an internal memory. Also, a program instructionmay include not only a mechanical code such as things generated by acompiler but also a high-level language code executable on a computerusing an interpreter. A module or a program module according to variousembodiments may include at least one of the above elements, or a part ofthe above elements may be omitted, or other elements may be furtherincluded. Operations performed by a module, a program module, or otherelements according to various embodiments may be executed sequentially,in parallel, repeatedly, or in a heuristic method or some operations maybe executed in different sequences or may be omitted. Alternatively,other operations may be added.

While the present disclosure has been shown and described with referenceto various embodiments thereof, it will be understood by those skilledin the art that various changes in form and details may be made thereinwithout departing from the spirit and scope of the present disclosure asdefined by the appended claims and their equivalents.

What is claimed is:
 1. An electronic device comprising: a housing; adisplay exposed through a first surface of the housing; a first cameraexposed through a second surface of the housing, the second surfacebeing opposite to the first surface; a second camera exposed through thesecond surface; a memory configured to store an image obtained by thefirst camera or the second camera; and a processor electricallyconnected with the display, the first camera, the second camera, and thememory, wherein the processor is configured to: output a first imageobtained by the first camera on the display, and if an area recognizedas a face in the first image has a size satisfying a specifiedcondition, obtain a second image by zooming in on a subjectcorresponding to the area using the second camera which is differentfrom the first camera and display the second image.
 2. The electronicdevice of claim 1, wherein the first image is a preview image or amoving image captured by the first camera, and wherein the second imageis a preview image or a moving image captured by the second camera. 3.The electronic device of claim 1, wherein, if the area recognized as theface in the first image has the size satisfying the specified condition,the processor is further configured to concurrently output the firstimage on a first area of the display and the second image on a secondarea of the display.
 4. The electronic device of claim 1, wherein, ifthe area recognized as the face in the first image has the sizesatisfying the specified condition, the processor is further configuredto output the first image on a first area of the display and the secondimage on a second area that is included in the first area.
 5. Theelectronic device of claim 1, wherein the second camera is configured tosupport optical zoom.
 6. The electronic device of claim 1, wherein thefirst camera includes a wide-angle lens, and wherein the second cameraincludes a telephoto lens.
 7. The electronic device of claim 1, wherein,when the second image is obtained, the processor is further configuredto zoom in on the face and a body of the subject using the secondcamera.
 8. The electronic device of claim 1, wherein the processor isfurther configured to: if a plurality of faces are recognized in thefirst image, classify the plurality of faces into one or more groupsbased on a distance between the plurality of faces, and obtain thesecond image having a group including a greatest number of faces amongthe one or more groups.
 9. The electronic device of claim 1, wherein theprocessor is further configured to: if a plurality of faces arerecognized in the first image, classify the plurality of faces into oneor more groups based on a distance between the plurality of faces,display, on the display, a guide to select one of the one or moregroups, and obtain the second image based on a group selected throughthe guide.
 10. The electronic device of claim 1, wherein the processoris further configured to: process the first image, process the secondimage differently from the first image, and store the second image inthe memory.
 11. The electronic device of claim 1, wherein the processoris further configured to display, on the display, a user interface forsaving the first image, saving the second image, or saving the firstimage and the second image.
 12. The electronic device of claim 1,wherein the processor is further configured to display, on the display,a user interface for simultaneously saving the first image and thesecond image.
 13. The electronic device of claim 1, wherein theprocessor is further configured to display, on the display, a userinterface for automatically outputting the second image on the display.14. An image capture method of an electronic device including a firstcamera and a second camera, the image capture method comprising:obtaining a first image using the first camera; outputting the firstimage; recognizing a face included in the first image; if an areaincluding the face in the first image has a size satisfying a specifiedcondition, obtaining a second image by zooming in on a subjectcorresponding to the area using the second camera which is differentfrom the first camera; and outputting the second image.
 15. Anelectronic device comprising: a housing; a display exposed through afirst surface of the housing; a first camera exposed through a secondsurface of the housing, the second surface being opposite to the firstsurface; a second camera exposed through the second surface; a memoryconfigured to store an image obtained by the first camera or the secondcamera; and a processor electrically connected with the display, thefirst camera, the second camera, and the memory, wherein the processoris configured to: output a first image obtained by the first camera onthe display, and if an area recognized as a moving subject in the firstimage has a size satisfying a specified condition, output a second imageobtained by the second camera on the display.
 16. The electronic deviceof claim 15, wherein the first image is a preview image or a movingimage captured by the first camera, and wherein the second image is apreview image or a moving image captured by the second camera.
 17. Theelectronic device of claim 15, wherein the processor is furtherconfigured to automatically track the moving subject included in thefirst image.
 18. The electronic device of claim 15, wherein theprocessor is further configured to: if two or more moving subjects arerecognized in the first image based on the specified condition, display,on the display, a guide to select one of the two or more movingsubjects; and obtain the second image of a moving subject selectedthrough the guide.
 19. The electronic device of claim 15, wherein, ifthe moving subject stops or is outside a field of view of the secondcamera, the processor is further configured to stop actuating of thesecond camera.